Skip to content

Add testcase to confirm current link behaviour and add check if 'link' in options is instance of dict.#233

Open
mielvds wants to merge 5 commits into
masterfrom
link-circular-refs
Open

Add testcase to confirm current link behaviour and add check if 'link' in options is instance of dict.#233
mielvds wants to merge 5 commits into
masterfrom
link-circular-refs

Conversation

@mielvds
Copy link
Copy Markdown
Collaborator

@mielvds mielvds commented Jan 20, 2026

This PR adds a testcase for link that confirms the current behaviour and adds a safeguard for non-dict values of options['link'] where applicable. An empty dict is not truthy in python, so cannot just check for "if options['link']". However, this in some places, this is desired.

Fixes #64
Replaces #66 because it was too outdated for a merge.

@mielvds
Copy link
Copy Markdown
Collaborator Author

mielvds commented Jan 20, 2026

This PR introduces a regression in the framing implementation. While the use of options['link'] is error-prone, the current code somehow relies on this side-effect. Further investigation is needed before this becomes an actual fix.

@mielvds mielvds force-pushed the link-circular-refs branch from 45b8b7f to fb443c1 Compare May 12, 2026 11:01
@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 12, 2026

@mielvds mielvds force-pushed the link-circular-refs branch from fb443c1 to 5f34cad Compare May 13, 2026 10:56
@mielvds mielvds marked this pull request as ready for review May 13, 2026 11:02
@mielvds mielvds force-pushed the link-circular-refs branch from c3e3548 to cf90813 Compare May 13, 2026 11:45
@mielvds mielvds changed the title Add check if 'link' in options is instance of dict. Add testcase to confirm current link behaviour and add check if 'link' in options is instance of dict. May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

framing with "@embed": "@link" cannot handle circular references

2 participants